﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GalaSoft.MvvmLight;

namespace EnglishStudy.Entity
{
    public class __invalid_type__1
    {
        public string U { get; set; }
        public int id { get; set; }
        public string N { get; set; }
    }

    public class __invalid_type__2850
    {
        public string U { get; set; }
        public int id { get; set; }
        public string N { get; set; }
    }

    public class __invalid_type__2744
    {
        public string U { get; set; }
        public int id { get; set; }
        public string N { get; set; }
    }

    public class Authors
    {
        public __invalid_type__1 __invalid_name__1 { get; set; }
        public __invalid_type__2850 __invalid_name__2850 { get; set; }
        public __invalid_type__2744 __invalid_name__2744 { get; set; }
    }

    public class Meaning
    {
        public string text { get; set; }
        public string language { get; set; }
    }

    public class Phrase
    {
        public string text { get; set; }
        public string language { get; set; }
    }

    public class Tuc
    {
        public List<int> authors { get; set; }
        public object meaningId { get; set; }
        public List<Meaning> meanings { get; set; }
        public Phrase phrase { get; set; }
        public string WordMeaning
        {
            get
            {
                if (phrase != null)
                    return phrase.text;
                return null;
            }
        }
    }

    public class DictionaryEntity
    {
        public string result { get; set; }
        public Authors authors { get; set; }
        public string dest { get; set; }
        public string phrase { get; set; }
        public List<Tuc> tuc { get; set; }
        public string from { get; set; }
    }
}
